package com.brspace.qualitycontrol.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 请假
 * </p>
 *
 * @author ${author}
 * @since 2021-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Leave对象", description="请假")
public class Leaveing implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "uuid")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "紧急程度（正常。重要。紧急）")
    private String degree;

    @ApiModelProperty(value = "姓名")
    private String username;

    @ApiModelProperty(value = "部门")
    private String dept;

    @ApiModelProperty(value = "请假类型（可选）")
    private String types;

    @ApiModelProperty(value = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date startDate;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endDate;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(timezone = "GMT+8", pattern = "HH:mm:ss")
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "请假天数")
    private double dayNumber;

    @ApiModelProperty(value = "请假原因")
    private String text;

    @ApiModelProperty(value = "类型 加班0 请假1")
    private int state;

    @ApiModelProperty(value = "审核  2 审核结束  1 审核中 0 已提交")
    private int careful;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "部门ID")
    private String deptId;

    @ApiModelProperty(value = "路由ID")
    private int nodeId;

    @ApiModelProperty(value = "意见/路由条件")
    private String progress;

    @ApiModelProperty(value = "附件")
    private String file;

    @ApiModelProperty(value = "备注   json字符串")
    private String remarks;

    @ApiModelProperty(value = "说明")
    private String explains;

    @ApiModelProperty(value = "办公室主任意见")
    private String banRen;

    @ApiModelProperty(value = "办公室主任 ID")
    private String banId;

    @ApiModelProperty(value = "分管领导意见")
    private String fenRen;

    @ApiModelProperty(value = "分管领导ID")
    private String fenId;

    @ApiModelProperty(value = "主要领导意见")
    private String zhuRen;

    @ApiModelProperty(value = "主要领导ID")
    private String zhuId;

    @ApiModelProperty(value = "核销 0 是   1 否")
    private String writeOff;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;




}
